Initial setup for CLion
This commit is contained in:
17
anslicensing/CMakeLists.txt
Normal file
17
anslicensing/CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
# anslicensing — Licensing SDK (shared library, built from source)
|
||||
file(GLOB ANSLICENSING_SOURCES "*.cpp" "*.c")
|
||||
file(GLOB ANSLICENSING_HEADERS "*.h")
|
||||
|
||||
add_library(anslicensing SHARED ${ANSLICENSING_SOURCES} ${ANSLICENSING_HEADERS})
|
||||
|
||||
target_include_directories(anslicensing PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${SHARED_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_compile_definitions(anslicensing PRIVATE ANSLICENSING_EXPORTS LICENSING_EXPORTS _USRDLL)
|
||||
if(WIN32)
|
||||
target_link_libraries(anslicensing PRIVATE ${WIN_COMMON_LIBS} winhttp)
|
||||
else()
|
||||
target_link_libraries(anslicensing PRIVATE ${UNIX_COMMON_LIBS} curl ssl crypto)
|
||||
endif()
|
||||
Reference in New Issue
Block a user