Skip to content

Commit

Permalink
CMake configuration changes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
nemothenoone committed Jun 2, 2023
1 parent 08eb154 commit fbf2d5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ cm_project(template WORKSPACE_NAME ${CMAKE_WORKSPACE_NAME} LANGUAGES C CXX)

list(APPEND ${CURRENT_PROJECT_NAME}_PUBLIC_HEADERS)

list(APPEND ${CURRENT_PROJECT_NAME}_UNGROUPED_SOURCES)
list(APPEND ${CURRENT_PROJECT_NAME}_UNGROUPED_SOURCES
main.cpp)

list(APPEND ${CURRENT_PROJECT_NAME}_HEADERS
${${CURRENT_PROJECT_NAME}_PUBLIC_HEADERS})
Expand All @@ -20,7 +21,7 @@ list(APPEND ${CURRENT_PROJECT_NAME}_SOURCES

cm_setup_version(VERSION 0.1.0 PREFIX ${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME})

add_library(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} INTERFACE)
add_library(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} OBJECT ${${CURRENT_PROJECT_NAME}_SOURCES})

set_target_properties(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} PROPERTIES
EXPORT_NAME ${CURRENT_PROJECT_NAME})
Expand Down

0 comments on commit fbf2d5f

Please sign in to comment.