File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1- SET (CMAKE_CXX_STANDARD 11)
1+ cmake_minimum_required(VERSION 3.10)
2+
3+ project(ansys-usermat
4+ DESCRIPTION "A project meant to built the usermalLib library"
5+ HOMEPAGE_URL https://github.com/thelfer/tfel
6+ LANGUAGES CXX)
7+
8+ set(CMAKE_CXX_STANDARD 11)
9+ set(CXX_STANDARD_REQUIRED ON)
10+
211include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
312
4- add_library(ansuser SHARED usermat.cpp)
13+ if(WIN32)
14+ add_library(usermatLib SHARED usermat.cpp)
15+ else(WIN32)
16+ add_library(ansuser SHARED usermat.cpp)
17+ if(UNIX)
18+ target_link_libraries(ansuser dl)
19+ endif(UNIX)
20+ endif(WIN32)
21+
522add_executable(test-usermat test-usermat.cxx)
623if(UNIX)
7- target_link_libraries(ansuser dl)
824 target_link_libraries(test-usermat dl)
925endif(UNIX)
You can’t perform that action at this time.
0 commit comments