src/CMakeLists.txt
branchv_0
changeset 6 22b0fd622175
parent 5 4ec6d1458a58
child 15 825c611933b3
equal deleted inserted replaced
5:4ec6d1458a58 6:22b0fd622175
    12 # GNU General Public License for more details.
    12 # GNU General Public License for more details.
    13 #
    13 #
    14 # You should have received a copy of the GNU General Public License
    14 # You should have received a copy of the GNU General Public License
    15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
    15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
    16 
    16 
    17 set(LIBRARY_FILE "relpipe-lib-protocol")
    17 set(LIBRARY_FILE ${PROJECT_CODE}.cpp)
       
    18 
       
    19 configure_file("pkg-config.cpp.pc.in" "${PROJECT_CODE}.cpp.pc" @ONLY)
    18 
    20 
    19 # Library output:
    21 # Library output:
    20 add_library(
    22 add_library(
    21 	${LIBRARY_FILE} SHARED
    23 	${LIBRARY_FILE} SHARED
    22 	relpipe-lib-protocol.cpp
    24 	${PROJECT_CODE}.cpp
    23 )
    25 )
    24 
    26 
       
    27 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_CODE}.cpp.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/)
       
    28 install(DIRECTORY ../include/ DESTINATION include)