summaryrefslogtreecommitdiff
path: root/simplex-glpk/CMakeLists.txt
blob: 28485d335098f415732472cd7e3652fa6b2425b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if(UNIX)
    # Direct CMake to use dpcpp rather than the default C++ compiler/linker
    #set(CMAKE_CXX_COMPILER dpcpp)
    set(CMAKE_CXX_COMPILER icpx -fsycl)
else() # Windows
    # Force CMake to use dpcpp rather than the default C++ compiler/linker 
    # (needed on Windows only)
    include (CMakeForceCompiler)
    CMAKE_FORCE_CXX_COMPILER (dpcpp IntelDPCPP)
    include (Platform/Windows-Clang)
endif()

cmake_minimum_required (VERSION 3.4)

project(FastRecompile CXX)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

add_subdirectory (src)