-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
35 lines (24 loc) · 1.05 KB
/
CMakeLists.txt
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
33
cmake_minimum_required(VERSION 3.26)
project(veriaktar)
set(CMAKE_CXX_STANDARD 17)
if (WIN32)
set(CMAKE_EXE_LINKER_FLAGS "-static")
set(SELECTDIR windows)
set(SELECTRESOURCE WIN32 resource.rc veriaktar.exe.manifest)
set(LIBRARIES ws2_32 Bcrypt Urlmon )
elseif (APPLE)
#set(CMAKE_OSX_ARCHITECTURES "arm64" CACHE INTERNAL "" FORCE)
#set(SELECTDIR macos/arm64)
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE INTERNAL "" FORCE)
set(SELECTDIR macos)
set(LIBRARIES iconv "-framework SystemConfiguration -framework Carbon -framework IOKit -framework CoreVideo -framework Cocoa")
elseif (UNIX AND NOT APPLE)
set(SELECTDIR linux)
set(LIBRARIES dl pthread GL X11)
endif ()
#for compat, osx mingw linux
include_directories(../third_party/include)
link_directories(../third_party/lib/${SELECTDIR} ../bin)
add_executable(veriaktar ${SELECTRESOURCE} main.cpp yahoo.cpp metastock.cpp)
#set_target_properties(Musavir PROPERTIES LINK_FLAGS "-Wl,-rpath,./")
target_link_libraries(veriaktar curl ssl crypto ${LIBRARIES})