Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,119 @@
*.d
fc-sui
test-bin
Findfmt.cmake
qrc_resources.cpp
*.zip
html
latex
qrc_resources
*.vtxc
.DS_Store
.vscode
CMakeFiles
conan*
graph_info*
cmake_install.cmake
CMakeCache*
xout/
build

# Prerequisites
*.d

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
[Xx]64/
[Xx]86/
[Bb]uild/
bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# Object files
*.o
*.ko
*.elf


# Linker output
*.ilk
*.map
*.exp

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tlog
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Libraries
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

#settings
CMakeSettings.json
21 changes: 21 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required (VERSION 3.16)

project(freecell CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

file(GLOB_RECURSE vsrc "*.cc")
file(GLOB_RECURSE vhead "*.h")

list(FILTER vsrc EXCLUDE REGEX "test")
list(FILTER vsrc EXCLUDE REGEX "fc-sui")

add_library ("${PROJECT_NAME}lib" "${vsrc}" "${vhead}")

add_executable ("${PROJECT_NAME}" "fc-sui.cc" "${vhead}")
target_link_libraries("${PROJECT_NAME}" PRIVATE "${PROJECT_NAME}lib") # mymod uses symbols from myexe

add_executable("${PROJECT_NAME}_test" "test.cc" "test-main.cc")
target_link_libraries("${PROJECT_NAME}_test" PRIVATE "${PROJECT_NAME}lib") # mymod uses symbols from myexe

Loading