You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
973 B
31 lines
973 B
3 months ago
|
cmake_minimum_required (VERSION 3.9)
|
||
|
project (IsoSurfGen LANGUAGES CXX)
|
||
|
|
||
|
set (CMAKE_CXX_STANDARD 11)
|
||
|
|
||
|
macro(source_group_by_dir source_files)
|
||
|
if(MSVC)
|
||
|
set(sgbd_cur_dir ${CMAKE_CURRENT_SOURCE_DIR})
|
||
|
foreach(sgbd_file ${${source_files}})
|
||
|
string(REGEX REPLACE ${sgbd_cur_dir}/\(.*\) \\1 sgbd_fpath ${sgbd_file})
|
||
|
string(REGEX REPLACE "\(.*\)/.*" \\1 sgbd_group_name ${sgbd_fpath})
|
||
|
string(COMPARE EQUAL ${sgbd_fpath} ${sgbd_group_name} sgbd_nogroup)
|
||
|
string(REPLACE "/" "\\" sgbd_group_name ${sgbd_group_name})
|
||
|
if(sgbd_nogroup)
|
||
|
set(sgbd_group_name "\\")
|
||
|
endif(sgbd_nogroup)
|
||
|
source_group(${sgbd_group_name} FILES ${sgbd_file})
|
||
|
endforeach(sgbd_file)
|
||
|
endif(MSVC)
|
||
|
endmacro(source_group_by_dir)
|
||
|
|
||
|
|
||
|
if(NOT CMAKE_BUILD_TYPE)
|
||
|
set(CMAKE_BUILD_TYPE Release)
|
||
|
endif(NOT CMAKE_BUILD_TYPE)
|
||
|
|
||
|
ADD_SUBDIRECTORY(ThirdParty)
|
||
|
ADD_SUBDIRECTORY(App/console)
|
||
|
ADD_SUBDIRECTORY(App/console_pytorch)
|
||
|
ADD_SUBDIRECTORY(App/evaluation)
|
||
|
ADD_SUBDIRECTORY(App/evaluation_cpu)
|