-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (25 loc) · 922 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
32 lines (25 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required( VERSION 3.28 )
project( cacao LANGUAGES CXX )
set( CMAKE_CXX_STANDARD 23 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_C_STANDARD 23 )
set( CMAKE_C_STANDARD_REQUIRED ON )
if( UNIX )
add_definitions( -fpermissive )
elseif( _MSC_BUILD )
#add_definitions( /std:latest /clatest /cpplatest )
endif()
#set( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/cmake-golang;${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules" )
#include( CMakeDetermineGoCompiler )
#include( CMakeGoCompiler )
#include( CMakeGoInformation )
#include( CMakeTestGoCompiler )
#include( golang )
#enable_language(Go)
include_directories( lib/difflib/src )
include_directories( cpp/ )
file( GLOB CPP_SRCFILES cpp/*.cpp )
add_library( cacao STATIC ${CPP_SRCFILES} )
target_link_libraries( cacao stdc++ )
#file( GLOB GO_SRCFILES go/*.go )
#add_go_library( cacao_go STATIC ${GO_SRCFILES} )