CMakeLists.txt 488 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
cmake_minimum_required( VERSION 3.0 )

get_filename_component( CURRENT_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME )
message( STATUS "  - " ${CURRENT_TARGET} )
project( ${CURRENT_TARGET} LANGUAGES CXX )

file( GLOB LIB_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h )
file( GLOB LIB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp )

add_library( ${PROJECT_NAME} ${LIB_HEADERS} ${LIB_SOURCES} )


if( ENABLE_SOLUTION_FOLDERS )
    set_target_properties( ${PROJECT_NAME} PROPERTIES FOLDER "Core" )
endif()