src/CMakeLists.txt
branchv_0
changeset 9 30528cbe8838
parent 8 ff115d10f901
child 20 45d60cf711e1
equal deleted inserted replaced
8:ff115d10f901 9:30528cbe8838
    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-cli")
    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-cli.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)